package tz.data;

import java.util.Comparator;

public class WekaAttribute implements Comparator<WekaAttribute>
{
	public String name;
	public String type;
	
	public WekaAttribute()
	{
		
	}
	
	public WekaAttribute(String name, String type)
	{
		this.name = name;
		this.type = type;
	}
	
	public String toString()
	{
		return "@attribute " + name + " " + type;
	}

	@Override
	public int compare(WekaAttribute a, WekaAttribute b)
	{
		return b.name.compareToIgnoreCase( a.name );
	}
}
